﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.EntityInfo;
using Zocono.WCS.Infrastructure.ApllicationDto.WCSTaskDto;
using Zocono.WCS.Infrastructure.ApllicationDto;

namespace Zocono.WCS.Domain.JobDomain
{
    public interface IJobInfoService : IDomainService
    {
        Task<List<JobInfo>> GetJobInfos(string programeCode);
        Task<JobInfo> GetJobInfo(string programeCode, string jobName);
        Task<PageDto<JobInfo>> GetPagedJobInfoAsync(QueryJobInfoDto queryJobInfo);
        Task<List<JobInfo>> GetJobInfoListAsync();
        Task<bool> CreateJobInfoAsync(JobInfo jobInfo);
        Task<bool> ModifyJobInfoAsync(JobInfo jobInfo);
        Task<bool> DeleteJobInfoAsync(List<JobInfo> jobInfoList);
        Task<JobInfo> GetJobInfoByIdAsync(long id);
        Task<bool> DelectJobInfoByIdAsync(long id);

        
        Task<JobInfo> GetJobInfoByJobNameAsync(string jobName);
    }
}
